﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 用户创建数据传输对象
    /// </summary>
    public class UserCreateDto : BaseUserCreateAndUpdate
    {
        /// <summary>
        /// 登录账号
        /// </summary>
        [Required(ErrorMessage = "账号必填")]
        [DataValidation(ExtendValidationTypes.RegisterAccount)]
        public string Account { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [Required(ErrorMessage = "密码必填")]
        [DataValidation(DataValidation.ValidationTypes.Md5, ErrorMessage = "请输入正确的密码格式")]
        public string Password { get; set; }
    }
}
